package com.station.client.dragNDrop;

import com.google.gwt.dom.client.Element;
import com.google.gwt.event.dom.client.DragStartEvent;
import com.google.gwt.event.dom.client.DragStartHandler;
import com.google.gwt.user.client.ui.Image;

/**
 * Created with IntelliJ IDEA.
 * User: Jimmy87
 * Date: 16.11.13
 * Time: 22:43
 * To change this template use File | Settings | File Templates.
 */
public class PetrolPumpItem extends DraggableItem {

    public PetrolPumpItem() {
        getElement().setDraggable(Element.DRAGGABLE_TRUE);
        setUrl("imgs/pump_transp.png");
        setWidth("50px");
        setHeight("50px");
        addDragStartHandler(new DragStartHandler() {
            @Override
            public void onDragStart(DragStartEvent event) {
                event.setData("type","pump");
            }
        });
    }

}
